projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7642d5
)
Fixed const-related warnings
author
parkrrrr
<parkrrrr>
Tue, 21 Sep 2004 13:33:01 +0000
(13:33 +0000)
committer
parkrrrr
<parkrrrr>
Tue, 21 Sep 2004 13:33:01 +0000
(13:33 +0000)
shape.c
patch
|
blob
|
history
diff --git
a/shape.c
b/shape.c
index c3aefcec7330cee0cafa7fd54a0ca58d47c22758..0da74b97c3e34f22fde9a009be7fdfff408fe16f 100644
(file)
--- a/
shape.c
+++ b/
shape.c
@@
-120,7
+120,10
@@
my_write_wpt(const waypoint *wpt)
{
SHPObject *shpobject;
- shpobject = SHPCreateSimpleObject(SHPT_POINT, 1, &wpt->longitude, &wpt->latitude, &wpt->altitude);
+ shpobject = SHPCreateSimpleObject(SHPT_POINT, 1,
+ (double *)(void *)&wpt->longitude,
+ (double *)(void *)&wpt->latitude,
+ (double *)(void *)&wpt->altitude);
SHPWriteObject(ohandle, -1, shpobject);
SHPDestroyObject(shpobject);
}